package org.chen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.chen.common.model.travel.StoreTravelOrder;
import org.chen.common.request.PageParamRequest;

import java.util.List;

public interface StoreTravelOrderService extends IService<StoreTravelOrder> {

    StoreTravelOrder getByOderId(String orderId);

    Page<StoreTravelOrder> getUserOrderRefundList(Integer userId, Integer status, PageParamRequest pageRequest);

    Page<StoreTravelOrder> getUserOrderList(Integer userId, Integer status, PageParamRequest pageRequest);

    StoreTravelOrder getInfoById(Long id);

    int updateOrder(Long id, Integer version);

    int updateOrderStatus(Long id, Integer orderStatusIntSpike, Integer orderStatusIntBargain);

    StoreTravelOrder getByOrderNoWithLock(String orderNo);

    StoreTravelOrder getByOrderIdWithLock(String uni);

    StoreTravelOrder getByPayIdWithLock(String orderId);

    Page<StoreTravelOrder> getUserOrderByOderId(String orderId, PageParamRequest pageRequest);

    Page<StoreTravelOrder> getUserOrderRefundByOderId(String orderId, PageParamRequest pageRequest);
}
